package edu.yzu.testspringboot002.mapper;

import edu.yzu.testspringboot002.po.ChatGroup;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ChatGroupMapper {
    void insertChatGroup(ChatGroup chatGroup);
    void deleteChatGroupById(int id);
    void updateChatGroup(ChatGroup chatGroup);
    ChatGroup getChatGroupById(int id);

    List<ChatGroup> getAllChatGroups();

    List<ChatGroup> getChatGroupsByUserId(int userId);
}